package com.fmdj.mis.api.feign;

import com.fmdj.common.util.CommonResult;
import com.fmdj.mis.api.controller.form.SearchDriverBriefInfoForm;
import com.fmdj.mis.api.controller.form.SelectDriverAuthInfoForm;
import com.fmdj.mis.api.controller.form.SelectDriverByPageForm;
import com.fmdj.mis.api.controller.form.UpdateDriverRealAuthForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient("fmdj-dr")
public interface DrServiceApi {
    @PostMapping("/driver/selectDriverByPage")
    public CommonResult selectDriverPage(@RequestBody @Valid SelectDriverByPageForm form);

    @PostMapping("/driver/selectDriverAuthInfo")
    public CommonResult selectDriverAuthInfo(@RequestBody @Valid SelectDriverAuthInfoForm form);

    @PostMapping("/driver/updateDriverRealAuth")
    public CommonResult updateDriverRealAuth(@RequestBody @Valid UpdateDriverRealAuthForm form);

    @PostMapping("/driver/searchDriverBriefInfo")
    public CommonResult searchDriverBriefInfo(@RequestBody @Valid SearchDriverBriefInfoForm form);
}
